import Student from "./Student";
const StudentList=(props)=>{
    //console.log(props);
    return <div>
             <table>
                 <caption>学生列表</caption>
                 <thead>
                    <tr>
                         <th>姓名</th>
                        <th>性别</th>
                        <th>年龄</th>
                        <th>地址</th>

                    </tr>
                 </thead>
                 <tbody>
                 {props.stus.map(item=><Student key={item.id} stu={item}></Student>)}
                 </tbody>
             </table>
    </div>
}
export default  StudentList